import axios from '@/common/js/request.js';

export default {
	/**
	 * 查询盘点单列表
	 */
	list(params) {
		return axios.post(global.$host, 'api/v1/stockCheck/list', params);
	},
	/**
	 * 盘点详情
	 */
	detail(id) {
		return axios.post(global.$host, `api/v1/stockCheck/findDetailById?id=${id}`);
	},
	/**
	 * 初盘
	 */
	updateInitialStock(params) {
		return axios.post(global.$host, 'api/v1/stockCheck/updateInitialStock', params);
	},
	/**
	 * 初盘货品列表
	 */
	initialPlateList(params) {
		return axios.post(global.$host, 'api/v1/stockCheck/initialStockByCheckId', params);
	},
	/**
	 * 复盘
	 */
	updateReplayStock(params) {
		return axios.post(global.$host, 'api/v1/stockCheck/updateReplayStock', params);
	},
	/**
	 * 复盘货品列表
	 */
	replayPlateList(params) {
		return axios.post(global.$host, 'api/v1/stockCheck/replayStockByCheckId', params);
	}
}
